﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Alos.Common;
using Alos.Entity;
using System.Threading.Tasks;
using Alos.IService;

namespace Alos.LanClass.Api
{
    /// <summary>
    /// 学生课堂问答详情表
    /// </summary>
    public class RePutQuestionDetailController : ApiController
    {
        IRePutQuestionDetailService RePutQuestionDetailService;
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="_RePutQuestionDetailService"></param>
        public RePutQuestionDetailController(IRePutQuestionDetailService _RePutQuestionDetailService)
        {
            RePutQuestionDetailService = _RePutQuestionDetailService;         
        }
       /// <summary>
        ///添加学生课堂问答详情表
       /// </summary>
        /// <param name="RePutQuestionDetail"></param>
       /// <returns></returns>
       [HttpPost]
       [Route("api/RePutQuestionDetail/CreateRePutQuestionDetail")]
        public JsonRtn<dynamic> CreateRePutQuestionDetail([FromBody]RePutQuestionDetail RePutQuestionDetail)
       {
           var jsRtn = new JsonRtn<dynamic>();
           jsRtn.data = RePutQuestionDetailService.CreateRePutQuestionDetail(RePutQuestionDetail).ToString();
           return jsRtn;
       }
    }
}
